slider::slider(int ix, int iy, int iwidth, int iheight, int iminimumValue, int imaximumValue, byte ibarColor, byte iborderColor, byte iindicatorColor) :
gadget()
{
relX = ix;
relY = iy;
width = iwidth;
height = iheight;
minimumValue = iminimumValue;
maximumValue = imaximumValue;
barColor = ibarColor;
borderColor = iborderColor;
position = (width / 2);
indicatorColor = iindicatorColor;
type = sliderType;
}
void slider::draw(int ix, int iy, word offset)
{
x = ix;
y = iy;
x_rect_fill(x, y, x+width, y+height, offset, borderColor); //yer basic bar
x_line(x,y, x+width, y, borderColor + 5, offset); //top